
/**
* @project Twitter
* @author Dayong.Shen
* @package com.ithing.database.bean
* @file XmlUserLogin.java
* 
* @date 2014-4-1-下午9:24:32
* @Copyright 2014 ISI Team of NUDT-版权所有
* 
*/
 
package com.iot.ic.model;

import java.io.Serializable;
import java.util.Date;


/**
 * 记录登录信息
 * @author xiuge
 * 2016年8月4日下午7:23:57
 */
public class UserLogin implements Serializable{
	
	//token信息
	private String accessToken;
	
	//登录平台（1：web 2：exe 3：android 4：ios）
	private int loginPlatForm;
	
	//用户Id
	private Integer id;
	
	//上次登录时间
	private Date lastActiveTime;
	
	//用户名
	private String userName;
	
	private int userType;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}
	
	public Date getLastActiveTime() {
		return lastActiveTime;
	}

	public void setLastActiveTime(Date lastActiveTime) {
		this.lastActiveTime = lastActiveTime;
	}

	public int getLoginPlatForm() {
		return loginPlatForm;
	}

	public void setLoginPlatForm(int loginPlatForm) {
		this.loginPlatForm = loginPlatForm;
	}
	
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
    


	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	@Override
	public String toString() {
		return "UserLogin [accessToken=" + accessToken + ", loginPlatForm=" + loginPlatForm + ", id=" + id
				+ ", lastActiveTime=" + lastActiveTime + ", userName=" + userName + "]";
	}

	
	
	

}
